<template>
    <div class="box">
        <horder class="horder" style="display: flex;justify-self: count;">
            <van-icon name="add-square" />
            <van-search v-model="value" placeholder="请输入" @search="onSearch" style="margin: 0 20px 0 20px;">
                <template #action>
                    <div @click="onClickButton"></div>
                </template>
            </van-search>
            <van-icon name="manager" />
        </horder>
        <main class="main">
            <van-swipe :autoplay="3000" lazy-render style="width: 100%;height: 200px;">
                <van-swipe-item v-for="image in images" :key="image">
                    <img :src="image" />
                </van-swipe-item>
            </van-swipe>
        </main>
        <xuanran />
    </div>
</template>

<script setup>
import xuanran from './xuanran.vue';
    const images = [
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
    ];

</script>

<style lang="scss" scoped></style>